package com.fastloan.mgt.invest.model.count;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by gelon on 2017/10/16.
 */
public class BaseQuestion {

    String detail ;
    String typeName ;

    int num = 0;

    List<String> cusTempIds = new ArrayList<>();


    public String getDetail() {
        return detail;
    }

    public BaseQuestion setDetail(String detail) {
        this.detail = detail;
        return this;
    }

    public String getTypeName() {
        return typeName;
    }

    public BaseQuestion setTypeName(String typeName) {
        this.typeName = typeName;
        return this;
    }

    public int getNum() {
        return num;
    }

    public BaseQuestion setNum(int num) {
        this.num = num;
        return this;
    }

    public void pushAns(String id){
        if(!cusTempIds.contains(id)){
            cusTempIds.add(id);
            num = cusTempIds.size();
        }
    }

}
